home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_35441.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  54 lines

  1. -- card: 35441 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: ns@CAT.CMU.EDU (Nicholas Spies)
  12.  
  13. Date: 9 Mar 88 20:09:42 GMT
  14.  
  15. I want to copy the contents in fields of one stack to an updated version
  16. new stack. I used a script like the one here...
  17.  
  18. on copyStuff - executed from a button in the source stack
  19.   put the number of cards into numCards
  20.   repeat with i = 1 to numCards
  21.     go card i of stack "sourceStack"
  22.     put field "f1" into f1contents
  23.     - and so on
  24.   
  25.   go stack "destination" - has one card to begin with, with fields, etc
  26.   if i > the number of cards then
  27.     doMenu "New Card"
  28.   end if
  29.  
  30.   go card i
  31.  
  32.   put f1contents into field "f1" - fields have same names
  33.   - and so on
  34.  
  35.  end repeat
  36. end copyStuff
  37.  
  38. There are almost 1100 cards in the source stack. Of course I tried it a few
  39. times on about 20 cards  to make sure things were working as expected, and
  40. then let it go for about an hour to copy all field contents. I compacted the
  41. destination stack only to find that only abour 5  card's worth of stuff had
  42. been copied, even though all the cards were created in the destination
  43. stack.
  44.  
  45. What gives? Did I unwittingly destroy all the imported information by
  46. compacting the destination stack? Is there something that I have to do
  47. to make sure the imported data sticks? Considering this didn't work, is there
  48. a "right" way to do it?
  49.  
  50.  
  51.  
  52. -- part contents for background part 45
  53. ----- text -----
  54. Copying contents of stacks